Polymorphic Data Types, Objects, Modules and Functors, : Is It Too Much?
نویسندگان
چکیده
Abstraction is a powerful tool for developers and it is o ered by numerous features such as polymorphism classes modules and functors A working programmer may be confused with this abundance We develop a computer algebra library which is being certi ed Reporting this experience made with a language Ocaml o ering all these features we argue that they are all needed together We compare several ways of using classes to represent algebraic concepts trying to follow as close as possible mathematical speci cation Then we show how to combine classes and modules to produce code having very strong typing properties Currently this library is made of one hundred units of functional code and behaves faster than analogous ones such as Axiomion is a powerful tool for developers and it is o ered by numerous features such as polymorphism classes modules and functors A working programmer may be confused with this abundance We develop a computer algebra library which is being certi ed Reporting this experience made with a language Ocaml o ering all these features we argue that they are all needed together We compare several ways of using classes to represent algebraic concepts trying to follow as close as possible mathematical speci cation Then we show how to combine classes and modules to produce code having very strong typing properties Currently this library is made of one hundred units of functional code and behaves faster than analogous ones such as Axiom
منابع مشابه
Private Row Types: Abstracting the Unnamed
In addition to traditional record and variant types, Objective Caml has structurally polymorphic types, for objects and polymorphic variants. These types allow new forms of polymorphic programming, but they have a limitation when used in combination with modules: there is no way to abstract their polymorphism in a signature. Private row types remedy this situation: they are manifest types whose...
متن کاملVanishing of Ext-Functors and Faltings’ Annihilator Theorem for relative Cohen-Macaulay modules
et be a commutative Noetherian ring, and two ideals of and a finite -module. In this paper, we have studied the vanishing and relative Cohen-Macaulyness of the functor for relative Cohen-Macauly filtered modules with respect to the ideal (RCMF). We have shown that the for relative Cohen-Macaulay modules holds for any relative Cohen-Macauly module with respect to with ........
متن کاملRESULTS ON ALMOST COHEN-MACAULAY MODULES
Let $(R,underline{m})$ be a commutative Noetherian local ring and $M$ be a non-zero finitely generated $R$-module. We show that if $R$ is almost Cohen-Macaulay and $M$ is perfect with finite projective dimension, then $M$ is an almost Cohen-Macaulay module. Also, we give some necessary and sufficient condition on $M$ to be an almost Cohen-Macaulay module, by using $Ext$ functors.
متن کاملExtension functors of generalized local cohomology modules and Serre subcategories
In this paper we present several results concerning the cofiniteness of generalized local cohomology modules.
متن کاملA Polymorphic Language With First-Class Modules
Modules provide a grouping mechanism in modern programming languages that provide both syntactic and semantic support for constructing modular programs. Existing languages with modules are strat-iied-the module system \sits on top of" the core language. This paper presents a language fragment where modules are rst-class objects and are hence part of the core language. Modules are deened by exte...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2000